package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 工具管理对象 sys_tools
 *
 * @author ruoyi
 * @date 2021-10-26
 */
public class SysTools extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Integer toolId;

    /** 名称 */
    @Excel(name = "名称")
    private String toolName;

    /** 数量 */
    @Excel(name = "数量")
    private Integer toolNum;

    /** 进货日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "进货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date toolDate;

    public void setToolId(Integer toolId)
    {
        this.toolId = toolId;
    }

    public Integer getToolId()
    {
        return toolId;
    }
    public void setToolName(String toolName)
    {
        this.toolName = toolName;
    }

    public String getToolName()
    {
        return toolName;
    }
    public void setToolNum(Integer toolNum)
    {
        this.toolNum = toolNum;
    }

    public Integer getToolNum()
    {
        return toolNum;
    }
    public void setToolDate(Date toolDate)
    {
        this.toolDate = toolDate;
    }

    public Date getToolDate()
    {
        return toolDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("toolId", getToolId())
                .append("toolName", getToolName())
                .append("toolNum", getToolNum())
                .append("toolDate", getToolDate())
                .toString();
    }
}